package com.umpay.privi.model.sys;

import java.io.Serializable;
import com.umpay.privi.util.ObjectUtil;
import com.umpay.privi.util.StringUtil;

public class UserRole implements Serializable {

	private static final long serialVersionUID = 1L;
			
	public static final String USERID = "userId";
			
	public static final String ROLEID = "roleId";
		
	//用户ID;	
	private String userId;
	//角色ID;	
	private Integer roleId;
	//0：可分配；1：不可分配;	
	private Short isAssignable;
	//0:可用；1：不可用；
	private Short isUsable;
	//0 可用 1 删除 ;	
	private Short flag;
	
	public void trim(){
		StringUtil.trimObjectFields(this);
	}
	
	@Override
	public String toString() {
		return ObjectUtil.object2LogStr(this);
	}
			
	public String getUserId(){
		return userId;
	}
			
	public Integer getRoleId(){
		return roleId;
	}
			
	public Short getIsAssignable(){
		return isAssignable;
	}
	
	public Short getIsUsable(){
		return isUsable;
	}
			
	public Short getFlag(){
		return flag;
	}
		
				
	public void setUserId(String userId){
		this.userId = userId;
	}
		
	public void setRoleId(Integer roleId){
		this.roleId = roleId;
	}
		
	public void setIsAssignable(Short isAssignable){
		this.isAssignable = isAssignable;
	}
	
	public void setIsUsable(Short isUsable){
		this.isUsable = isUsable;
	}
		
	public void setFlag(Short flag){
		this.flag = flag;
	}
}